<template>
<span class="opera_model-wrapper">
  <button v-if="col.btns.REFUNDINFO&&refund_status>0" class="ui button primary mini" @click.stop.prevent="refundInfo"
          title="退款详情">{{col.btns.REFUNDINFO}}</button>
</span>
</template>
<script type="text/ecmascript-6">
    import tool from 'src/util/tool';
    import util from '_util/index';
    import logic from '_logic';
    export default {
        data() {
            return {}
        },
        methods: {
          refundInfo(){
                let order_id =logic.detail.getDetail(this, this._id,'order_id').val;
                this.$router.push('/page/list?ctl=Refundorders&isSearch=1&order_num=' + order_id.split(':')[1]);
            },
        },
        computed: {
            ctl(){
                return this.$route.query.ctl;
            },
            is_admin(){
                return util.is_admin(this);
            },
          refund_status(){
                return logic.detail.getDetail(this, this._id,'refund_status').val;
            },
        },
        watch: {},

        props: ['col', '_id', 'detail_info'],
        created() {

        },
    }
</script>
<style rel="stylesheet/less" lang="less"></style>
